<template>
  <div class="app-container home">
     首页
  </div>
</template>

<script setup>

//获取省市区
import {getPcaDataTreeList} from "@/api/scApi";
import {onMounted} from "vue";

onMounted(()=>{
  let addressJSON=localStorage.getItem('addressJSON')
  if(!addressJSON){
    getAddressData()
  }
})

function getAddressData(){
  getPcaDataTreeList().then(res=>{
    if(res.code===200){
      let obj=JSON.stringify(res.data)
      localStorage.setItem('addressJSON',obj)
    }
  })
}


</script>

<style scoped lang="scss">

</style>

